// console.log('hello')

// es2017 es8

import {APP_PORT} from './app/app.config'
import app from './app'
import {connection} from './app/database/mysql'

app.listen(APP_PORT,()=>{
   console.log('服务器启动')
})

connection.connect(error=>{
    if(error){
        console.log('链接数据库失败',error.message)
        return ;
    }
    console.log('数据库已链接')
})